// 权限工具

import {LoginContext, useLoginStore} from "./login";

export function checkPermission(need: string): boolean {
    const loginStore = useLoginStore()
    let permissions = loginStore.permissions
    return permissions.includes(need) || permissions.includes('*:*')
}